package com.dong.utils;

import java.io.File;

import android.os.Environment;

public class Constants 
{

	// 基本地址
	public static final String BASE = "http://www.1ccf.com/";

	//热点新闻
	public static final String 	TOP_URL="http://api.1ccf.com/top/list?limit=5";
	
	// 新闻地址
	public static final String NEWS = "http://api.1ccf.com/news/list?page=%d&limit=40";

	// 新闻详情地址
	public static final String NEWS_DETAIL = "http://api.1ccf.com/news/show?id=%d";

	// 新闻搜索地址
	public static final String NEWS_SEARCH = "http://api.1ccf.com/news/search?keyword=%s&page=%d";

	// 健康知识地址
	public static final String KNOWLEDGE = "http://api.1ccf.com/lore/list?page=%d&limit=20";

	// 健康知识详情地址
	public static final String KNOWLEDGE_DETAIL = "http://api.1ccf.com/lore/show?id=%d";

	// 健康知识搜索地址
	public static final String KNOWLEDGE_SEARCH = "http://api.1ccf.com/lore/search?keyword=%s&page=%d";

	// 药品直达列表的地址
	public final static String DRUGLIST_PATH = "http://api.1ccf.com/drug/list?page=%d&limit=20";

	// 药品直达详情的地址
	public final static String DRUGSHOW_PATH = "http://api.1ccf.com/drug/show?id=%d";

	// 药品直达搜索的地址
	public final static String DRUG_SEARCH = "http://api.1ccf.com/drug/search?keyword=%s&page=%d";

	// 健康食品列表的地址
	public final static String COOKLIST_PATH = "http://api.1ccf.com/cook/list?page=%d&limit=20";

	// 健康食谱详情的地址
	public final static String COOKSHOW_PATH = "http://api.1ccf.com/cook/show?id=%d";

	// 健康食谱搜索地址
	public final static String COOK_SEARCH = "http://api.1ccf.com/cook/search?keyword=%s&page=%d";

	/* 病状查找相应接口 */
	// 获得列表
	public static final String ILL_SEARCH_LIST = "http://api.1ccf.com/symptom/list?page=%d&limit=20";

	// 显示详情
	public static final String ILL_SEARCH_DETAILS = "http://api.1ccf.com/symptom/show?id=%d";

	// 搜索接口
	public static final String ILL_SEARCH = "http://api.1ccf.com/symptom/search?keyword=%s";

	/* 项目检查相应接口 */
	// 获得列表
	public static final String ITEMS_CHECK_LIST = "http://api.1ccf.com/check/list?page=%d&limit=20";

	// 显示详情
	public static final String ITEMS_CHECK_DETAILS = "http://api.1ccf.com/check/show?id=%d";

	// 搜索接口
	public static final String ITEMS_CHECK_SEARCH = "http://api.1ccf.com/symptom/search?keyword=%s";

	// 定位接口
	public static final String LOCATE = "http://api.1ccf.com/hospital/location?x=%s&y=%s&page=%d";
	// 医院详情
	public static final String LOCATE_DETAIL = "http://api.1ccf.com/hospital/show?id=%d";

	
	//SDCard缓存的存放路径
	public static final String CACHEPATH=Environment.getExternalStorageDirectory().getAbsolutePath()+File.separator+"yil8";
	
	//数据库存储路径
	public static final String DB_PATH=CACHEPATH+File.separator+"databases";
	
	//图片存放路径
	public static final String IMAGE_PATH=CACHEPATH+File.separator+"images";
	
	//文本请求类型
	public static final short REQUEST_TYPE_TEXT=1;
	
	//图片请求类型
	public static final short REQUEST_TYPE_IMAGE=2;
	
	//查看详情的请求类型
	public static final short REQUEST_TYPE_DETAIL=3;
	
	public static final short MODE_NEWS=1;  //健康新闻
	public static final short MODE_LORE=2;  //健康知识
	public static final short MODE_DRUG=3;  //药品直达
	public static final short MODE_COOK=4;  //健康食谱
	public static final short MODE_SYMPTOM=5; //病状查找
	public static final short MODE_CHECKLIEBIAO=6; //项目检查
	
	public static final String SETTING_CHECK_NETWORK="checkNetwork";
	public static final String SETTING_ENABLE_CACHE="enableCache";
}
